﻿using BaseFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace LiteFramework.Model
{
    [Serializable]
    [ComVisible(true)]
    [Entity("SYS_Organization")]
    public class Organization : PersistentEntity<Organization>
    {
        public Organization() { }
        public Organization(Company company) { }
        
        public int Id { get; set; }
        public int ParentId { get; set; }
        public string DocNo { get; set; }
        public string Name { get; set; }
        public bool Special { get; set; }
        public bool Active { get; set; }


        public Company Company { get; set; }

        public DateTime ClosingDate { get; set; }

        public static OrganizationNameChoice ToChoice(Organization organ) { return null; }
    }
}